home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Mouse Event Handling
- Sent: 3/8/96 6:17 PM
- Received: 3/11/96 8:27 AM
- From: lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >How do I use the MouseEnter, MouseWithin and MouseLeave event handler methods
- >while the mouse button is still down?
- >
- >It appears that FW_CODPart::HandleEvent() is called with a nullEvent when the
- >mouse button is still down? I thought that I could check for a mouse still
- >down in FW_CEventDispatcher::Dispatch()'s nullEvent; then call one of the
- >other mouse events. However, when FW_CEventDispatcher::Dispatch() is called,
- >the odFrame is NULL, but the mouse position is available in the event record.
- >
- >Is it possible to get the appropriate frame and call MouseEnter, MouseWithin
- >or MouseLeave? Or is there an easier way to take advantage of these mouse
- >event methods when the mouse button is still down?
- >
- >Thanks,
- >Ken
- >BikeB4Work@aol.com
-
- OpenDoc only send MouseEnter, MouseWithin and MouseLeave events when the
- mouse is up. They don't work during mouse down. To do what I think your
- are trying to do you should use a FW_CTracker object. ODFBitmap and
- ODFDraw use tracker objects.
-
- Henri Lamiraux
- ODF Team
-